home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / metamail / contrib / mm / mailcap < prev    next >
Encoding:
Text File  |  1992-04-02  |  4.6 KB  |  85 lines

  1. # Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
  2. # Permission to use, copy, modify, and distribute this material 
  3. # for any purpose and without fee is hereby granted, provided 
  4. # that the above copyright notice and this permission notice 
  5. # appear in all copies, and that the name of Bellcore not be 
  6. # used in advertising or publicity pertaining to this 
  7. # material without the specific, prior written permission 
  8. # of an authorized representative of Bellcore.  BELLCORE 
  9. # MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
  10. # OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
  11. # WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  12. #
  13. # Prototype Mailcap file
  14. # Note that support for text & multipart are "built in" to metamail,
  15. # as are rudimentary support for message, and application.
  16. # However, any of these may be overridden in mailcap.
  17. #
  18. # Note that users may override or extend this with a .mailcap
  19. # file in their own directory.  However, there is NO NEED
  20. # for them to copy entries from this file, as metamail will
  21. # pick up entries from both the system and personal mailcap files.
  22. #
  23. audio/*; showaudio
  24. # The following line is for sites where xv understands jpeg but xview is preferred.
  25. image/jpeg; showpicture -viewer xv %s
  26. image/*; showpicture %s
  27. message/partial; showpartial %s %{id} %{number} %{total}
  28. message/external-body; showexternal %s %{access-type} %{name} %{site} %{directory} %{mode} ; needsterminal
  29.  
  30. # If you have an interactive Postscript interpreter, you should think carefully 
  31. # before replacing lpr with it in the following line, because PostScript
  32. # can be an enormous security hole.  It is RELATIVELY harmless
  33. # when sent to the printer...
  34. application/postscript ; lpr %s ; label="A Postscript File";\
  35.     compose="getfilename Postscript %s"
  36.  
  37.  
  38. # The following should be commented out if you do NOT have atomicmail
  39. application/atomicmail; atomicmail %s ; needsterminal
  40.  
  41. # The following give rudimentary capabilities to read old andrew format
  42. # even to non-Andrew sites, since "ezview" comes with metamail.
  43. x-be2;     ezview %s ; copiousoutput
  44. application/andrew-inset;     ezview %s ; copiousoutput; edit=ez -d %s; compose="ez -d %s"; label="An Andrew inset/document"
  45.  
  46. # The following gives rudimentary capability for receiving 
  47. # text mail in the ISO-8859-1 character set, which covers many European 
  48. # languages, and the ISO-8859-8 character set, which includes Hebrew
  49. # Note that the pipe to tr ensures that the "ISO" is case-insensitive.
  50. text/richtext; shownonascii iso-8859-8 -e richtext -p %s; test=test "`echo %{charset} | tr A-Z a-z`"  = iso-8859-8; copiousoutput
  51. text/richtext; shownonascii iso-8859-1 -e richtext -p %s; test=test "`echo %{charset} | tr A-Z a-z`"  = iso-8859-1; copiousoutput
  52. text/plain; shownonascii iso-8859-8 %s; test=test "`echo %{charset} | tr A-Z a-z`" = iso-8859-8; copiousoutput
  53. text/plain; shownonascii iso-8859-1 %s; test=test "`echo %{charset} | tr A-Z a-z`" = iso-8859-1; copiousoutput
  54. text/richtext; richtext %s; copiousoutput
  55. # If you have Andrew at your site, you MIGHT prefer to replace the
  56. # above line with the following one, but probably won't because
  57. # ez takes so long to start up.
  58. # text/richtext; richtoatk < %s | ezview - ; copiousoutput
  59.  
  60. # The following is a VERY rough cut at showing mail from Sun's openwindows mailtool
  61. x-sun-attachment; sun-to-mime.csh %s
  62. audio-file; sun-audio-file.csh %s
  63. default; cat %s; copiousoutput
  64.  
  65. # The following all appear AFTER the corresponding READING entries, and 
  66. # are for use in messages composition, e.g. in the "mailto" program
  67. audio/basic; showaudio %s; compose=audiocompose %s; edit=audiocompose %s; label="An audio fragment"
  68.  
  69. # In the three following lines, the exit 0 junk is necessary because xwd 
  70. # doesn't always exit with a valid exit status!
  71. # Note that most sites can choose just one of these three!
  72. image/gif; showpicture %s; compose="xwd -frame | xwdtoppm | ppmtogif > %s\; exit 0"; label="An X11 window image dump in GIF format for X11R4"
  73. image/gif; showpicture %s; compose="xwd -frame | xwdtopnm | ppmtogif > %s\; exit 0"; label="An X11 window image dump in GIF format for X11R5"
  74. image/x-xwd; showpicture %s; compose=xwd -frame > %s\; exit 0; label="An X11 window image dump in X-XWD format"
  75.  
  76. # The following is used for distributing metamail patches
  77. # It should probably be used only by those administering metamail at a site.
  78. # You will need to replace "source-tree-root" with the real root of your 
  79. # actual metamail source tree.
  80. # You can also modify this line to get metamail patches from some trusted
  81. # server other than thumper, if there is one -- man patch-metamail" for help.
  82. application/x-metamail-patch;patch-metamail source-tree-root %{patchnumber}; needsterminal
  83.  
  84.